/*
 *  @product.title@
 *  Copyright (C) @product.copyright-year@
 *    @product.vendor@
 *    Registration Number: @product.registration-number@
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package jp.go.aist.six.util.castor;

import org.castor.spring.orm.CastorTemplate;
import org.castor.spring.orm.support.CastorDaoSupport;
import org.exolab.castor.jdo.JDOManager;



/**
 * This class extends CastorDaoSupport by supporting ExtendedCastorTemplate.
 *
 * @author  Akihito Nakamura, AIST
 * @version $Id: ExtendedCastorDaoSupport.java 301 2011-03-02 07:31:03Z nakamura5akihito $
 */
public abstract class ExtendedCastorDaoSupport
extends CastorDaoSupport
{

    /**
     * Constructor.
     */
    public ExtendedCastorDaoSupport()
    {
    }



    /**
     */
    public ExtendedCastorTemplate getExtendedCastorTemplate()
    {
        return ExtendedCastorTemplate.class.cast( getCastorTemplate() );
    }



    //**************************************************************
    //  CastorDaoSupport
    //**************************************************************

    @Override
    protected CastorTemplate createCastorTemplate(
                    final JDOManager jdoManager
                    )
    {
        return new ExtendedCastorTemplate( jdoManager );
    }

}
// ExtendedCastorDaoSupport
